package thread;

import java.util.concurrent.locks.ReentrantLock;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25397
 * Date: 2022-04-07
 * Time: 22:19
 */
public class Demo29 {
    public static void main(String[] args){
        ReentrantLock locker=new ReentrantLock();
        //加锁
        locker.lock();
        //解锁
        locker.unlock();
    }

}
